<?php

require_once './cfg/api.php';
require_once './cfg/main.php';
require_once './lib/System/Loader.php';

$cfg['tpl.path'] = './tpl';
$cfg['tpl.cache'] = './tmp/tpl';
$cfg['api.map'] = $api;

$loader = new System_Loader();
$loader->setIncludePath('./lib');
$loader->registerAutoLoad();

$handler = new Twis_Handler($cfg);
$handler->startUp();

?>
